<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Route::get('/test',function(){
//    return ;
//});

Route::any('test/test','TestController@test');

Route::get('test/add','TestController@add');


Route::get('student','TestController@test');

Route::get('test/add/{id}',['uses'=>'TestController@add','as'=>'add']);
Route::get('test/delete',['uses'=>'TestController@del','as'=>'del']);


Route::group(['Middleware'=>'web'],function(){
    Route::any('test/update',['uses'=>'TestController@update','as'=>'update']);
    Route::any('test/add',['uses'=>'TestController@add','as'=>'add']);
    Route::any('test/detail',['uses'=>'TestController@detail','as'=>'detail']);
});
Route::auth();

Route::get('/home', 'HomeController@index');
